﻿using System;

namespace OrbitOne.Elmah.DAL.Entities
{
    /// <summary>
    /// Represents an agent.
    /// </summary>
    public class AgentEntity
    {
        /// <summary>
        /// Gets or Sets the id of the agent.
        /// </summary>
        public virtual Guid Id { get; set; }
        /// <summary>
        /// Gets or Sets the name of the agent.
        /// </summary>
        public virtual string Name { get; set; }
        /// <summary>
        /// Gets or Sets when the agent was created.
        /// </summary>
        public virtual DateTime CreatedOn { get; set; }
        /// <summary>
        /// Gets or  Sets the last heartbeat of the agent.
        /// </summary>
        public virtual DateTime LastHeartbeat { get; set; }
        /// <summary>
        /// Gets or Sets wether the agent is currently active.
        /// </summary>
        public virtual bool IsActive { get; set; }
        /// <summary>
        /// Gets or Sets the agent's description.
        /// </summary>
        public virtual string Description { get; set; }
    }
}
